<div class="crumb-wrap">
    <div class="crumb-list"> <i class="icon-font"></i>
        <a href="<?=site_url()?>">首页</a>
        <span class="crumb-step">&gt;</span>
        <a class="crumb-name" href="<?=site_url('article')?>">文章管理</a>
        <span class="crumb-step">&gt;</span>
        <span>修改文章</span>
    </div>
</div>
<div class="result-wrap" style="margin-top: 15px">
    <div class="result-content">
        <form action="<?=site_url('article/article_update')?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
            <table class="insert-tab" width="100%">
                <tbody>
                    <tr>
                        <th width="120"> <i class="require-red">*</i>
                            分类：
                        </th>
                        <td>
                                <select name="sort_id" id="catid" class="required">
                                    <option value="0">其他分类</option>
                                    <?php foreach($list_sort as $k => $v):?>
                                    <?php if($res['sort_id'] == $v['id']):?>
                                        <option value="<?=$v['id']?>" selected><?=$v['title']?></option>
                                    <?php else:?>
                                        <option value="<?=$v['id']?>" ><?=$v['title']?></option>
                                    <?php endif;?>
                                    <?php endforeach;?>
                                </select>
                            </td>
                    </tr>
                    <tr>
                        <th>
                            <i class="require-red">*</i>
                            标题：
                        </th>
                        <td>
                            <input class="common-text required" id="title" name="title" size="50" value="<?=$res['title']?>" type="text"></td>
                    </tr>
                    <tr>
                        <th>内容：</th>
                        <td>
                            <textarea name="content" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10">
                                <?=$res['content']?>
                            </textarea>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>注意事项：</th>
                        <td>
                            <ul style="margin-left: 10px">
                                <li>上传 图片或者falsh 时请注意将图片宽高设置为 100%，方便用户查看</li>
                                <li>客户预览文档时，宽度一般为800px 或 600px，编辑文档的时候尽量使用两端对齐</li>
                            </ul>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="hidden" name="aid" value="<?=$res['id']?>">
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button"></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript" charset="utf-8" src="<?=base_url('public/ckeditor/ckeditor.js')?>"></script>
<script type="text/javascript">
    window.onload = function()
    {
        CKEDITOR.replace( 'content' );     //content是textarea的名称
    };
    // $('#myform').submit(function() {
    //     var index = layer.load(2);
    //     $(this).ajaxSubmit(function(data){
    //         layer.close(index);
    //         if(data == 1){
    //             layer.alert("操作成功～！",{
    //                 icon:1,
    //             });
    //         }else{
    //             layer.alert(data,{
    //                 icon:2,
    //             });
    //         }
    //     })
    //     return false;
    // })
</script>